import Layout from '@/page/index/index.vue';
import Store from '@/store/';
export default [
    {
        path: '/wel',
        component: () =>
            Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
        redirect: '/wel/index',
        children: [
            {
                path: 'index',
                name: '首页',
                meta: {
                    i18n: 'dashboard',
                },
                component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
            },
            {
                path: 'dashboard',
                name: '控制台',
                meta: {
                    i18n: 'dashboard',
                    menu: false,
                },
                component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue'),
            },
        ],
    },
    {
        path: '/test',
        component: Layout,
        redirect: '/test/index',
        children: [
            {
                path: 'index',
                name: '测试页',
                meta: {
                    i18n: 'test',
                },
                component: () => import(/* webpackChunkName: "views" */ '@/views/util/test.vue'),
            },
        ],
    },
    {
        path: '/dict-horizontal',
        component: Layout,
        redirect: '/dict-horizontal/index',
        children: [
            {
                path: 'index',
                name: '字典管理',
                meta: {
                    i18n: 'dict',
                },
                component: () =>
                    import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue'),
            },
        ],
    },
    {
        path: '/dict-vertical',
        component: Layout,
        redirect: '/dict-vertical/index',
        children: [
            {
                path: 'index',
                name: '字典管理',
                meta: {
                    i18n: 'dict',
                },
                component: () =>
                    import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue'),
            },
        ],
    },
    // {
    //     path: '/info',
    //     component: Layout,
    //     redirect: '/info/index',
    //     children: [
    //         {
    //             path: 'index',
    //             name: '个人信息',
    //             meta: {
    //                 i18n: 'info',
    //             },
    //             component: () => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue'),
    //         },
    //     ],
    // },
    {
        path: '/work/process/leave',
        component: Layout,
        redirect: '/work/process/leave/form',
        children: [
            {
                path: 'form/:processDefinitionId',
                name: '请假流程',
                meta: {
                    i18n: 'work',
                },
                component: () =>
                    import(/* webpackChunkName: "views" */ '@/views/work/process/leave/form.vue'),
            },
            {
                path: 'handle/:taskId/:processInstanceId/:businessId',
                name: '处理请假流程',
                meta: {
                    i18n: 'work',
                },
                component: () =>
                    import(/* webpackChunkName: "views" */ '@/views/work/process/leave/handle.vue'),
            },
            {
                path: 'detail/:processInstanceId/:businessId',
                name: '请假流程详情',
                meta: {
                    i18n: 'work',
                },
                component: () =>
                    import(/* webpackChunkName: "views" */ '@/views/work/process/leave/detail.vue'),
            },
        ],
    },
    // {
    //     path: '/anwise/customer',
    //     component: Layout,
    //     redirect: '/anwise/customer/customer',
    //     children: [
    //         {
    //             path: 'add',
    //             name: '创建客户',
    //             meta: {
    //                 i18n: 'create_customer',
    //             },
    //             component: () =>
    //                 import(/* webpackChunkName: "views" */ '@/views/anwise/customer/customer_form.vue'),
    //         },
    //         {
    //             path: 'detail/:customerId',
    //             name: '客户详情',
    //             meta: {
    //                 i18n: 'customer_detail',
    //             },
    //             component: () =>
    //                 import(/* webpackChunkName: "views" */'@/views/anwise/customer/customer_form.vue'),
    //         },
    //     ],
    // },

];
